//
//  KTModel.swift
//  KOLToken
//
//  Created by san.yang on 2020/3/5.
//  Copyright © 2020 iOS-team. All rights reserved.
//

import HandyJSON

public final class ResponseData: CustomDebugStringConvertible {
    
    public var description: String {
        return "Status Code: \(status), Data: \(String(describing: data.toString()))"
    }
    public var debugDescription: String {
        return description
    }
    
    /// 是否成功  status == 10000
    var isSuccess: Bool
    /// 服务器信息
    var msg: String?
    /// 服务器数据
    var data: [String : Any]
    
    /**
     10000          业务请求成功
     98001          data字典中的数据为空
     */
    var status: Int
    
    public init(isSuccess: Bool, msg: String, data: [String : Any], status: Int){
        self.isSuccess = isSuccess
        self.msg = msg
        self.data = data
        self.status = status
    }
}
